// Copyright (c) Microsoft Corporation.  All rights reserved.
#pragma once

// simple Windows SideShow Icon wrapper
// SideShow Icon is a 32-bpp DIB

class CSSIcon
{
public:
    CSSIcon();
    ~CSSIcon();

    HRESULT SetData(const BYTE* pData, size_t cbData);
    UINT GetWidth();
    UINT GetHeight();
    SIZE Draw(HDC hdc, int x, int y);
    SIZE AlphaBlend(HDC hdc, int x, int y, BYTE bSrcAlpha);
    
private:
    VOID _ClearData();
    VOID _ClearBitmap();

    BYTE *m_pData;
    HBITMAP m_hBitmap;
    UINT m_nWidth;
    UINT m_nHeight;
};

